package com.yjt.admin.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjt.admin.system.dao.HandOverMapper;
import com.yjt.admin.system.entity.HandOver;
import com.yjt.admin.system.param.HandOverParam;
import com.yjt.admin.system.service.HandOverService;
import com.yjt.admin.system.vo.HandOverVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 工作交接表 服务实现类
 * </p>
 *
 * @author zzp
 * @since 2021-10-13
 */
@Service
public class HandOverServiceImpl extends ServiceImpl<HandOverMapper, HandOver> implements HandOverService {

    @Resource
    private HandOverMapper handOverMapper;

    @Override
    public HandOverVO getOneHandOver(String handOverId) {
        return handOverMapper.findOneHandOver(handOverId);
    }

    @Override
    public IPage<HandOverVO> getPageHandOver(HandOverParam handOverParam) {
        return handOverMapper.findPageHandOver(handOverParam.toPage(), handOverParam);
    }
}
